package me.sealer;

import me.sealer.utils.Excel03Util;

/**
 * Created by sealer on 17/05/17.
 */
public class Main {
    public static void main(String[] args) {
        String srcPath = "H:/tasks/src/src.xls";
        String templatePath = "H:/tasks/template/template.xls";
        String destFilePath = "H:/tasks/dest/";
        Excel03Util.handleExcel(templatePath, srcPath, destFilePath);

//        String s = EnumUtil.getString(ColumnName.充盈系数);
//        int i = EnumUtil.getOrdinal(ColumnName.充盈系数);
//        System.out.println(s + i);

        /*WritableWorkbook workbook = null;
        try {
            workbook = Workbook.createWorkbook(new File("H:/tasks/test/111.xls"));
            WritableSheet sheet = workbook.createSheet("Sheet1", 0);
            sheet.mergeCells(0, 0, 13, 0);
            WritableCellFormat cellFormat = new WritableCellFormat();
            cellFormat.setAlignment(Alignment.RIGHT);
            Label label = new Label(0, 0, "呵呵哒", cellFormat);
            sheet.addCell(label);
            workbook.write();//必须执行
        } catch (IOException e) {
            e.printStackTrace();
        } catch (RowsExceededException e) {
            e.printStackTrace();
        } catch (WriteException e) {
            e.printStackTrace();
        } finally {
            try {
                workbook.close();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (WriteException e) {
                e.printStackTrace();
            }
        }*/
    }
}
